{include file="general/header.tpl"}
<div id="path">
	You are here: <a href="/index.php">Home</a> &raquo; <a href="index.php">Administration</a> &raquo; <a href="{$url_stat_parent_page}">{if $url_stat_parent_page == 'url_stat.php'}My URL Stats{else}All URL Stats{/if}</a> &raquo; <a href="url_stat_view.php?id={$url->getID()}">View URL stat</a>
</div>
<div id="main">
	{capture name="tiny_url"}{get_scheme()}://{if $domain}{$domain->getDomain()}{else}{#RewriteHost#}{/if}/{$url->getKeyword()}{/capture}
	<h1>View URL stat</h1>
	<div class="form-field">
		<label>Keyword:</label>
		<b><acronym title="{$url->getURL()|escape}">{$url->getKeyword()}</acronym></b>
	</div>
	<div class="form-field">
		<label>Tiny URL:</label>
		<b><a href="{$smarty.capture.tiny_url}" rel="external" class="no-underline">{$smarty.capture.tiny_url}</a></b><br /><br />
	</div>
	<div class="form-field">
		<label>Number of hits:</label>
		<b>{$url_stat->getHits()}</b>
	</div>
	<div class="form-field">
		<label>Last visitor's IP:</label>
		<b>{if $url_stat->getIP()}{$url_stat->getIP()}{else}Not visited yet{/if}</b>
	</div>
	<div class="form-field">
		<label>Last access:</label>
		<b>{if $url_stat->getLastAccess()}{$url_stat->getLastAccess()}{else}Not visited yet{/if}</b>
	</div>
</div>
{include file="general/left.tpl"}
{include file="general/footer.tpl"}